package com.wnxy.sdd.front.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wnxy.sdd.front.entity.Video;
import com.wnxy.sdd.front.vo.VideoVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 课程视频 Mapper 接口
 * </p>
 *
 * @author Jet
 * @since 2023-03-30
 */
public interface VideoMapper extends BaseMapper<Video> {

    @Select("SELECT id,title,is_free FROM sdd_video WHERE course_id=#{id}")
    List<VideoVo> queryVideoByCourseId(String id);
}
